<?php

namespace basic;


use app\Request;

/**
 * 权限管理基类
 * Class BaseAuth
 * @package basic
 */
abstract class BaseAuth extends BaseStorage
{
    /**
     * 获取当前句柄名
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * 登录
     * @param Request $request
     * @return mixed
     */
    abstract public function login(Request $request);

    /**
     * 退出登录
     * @param Request $request
     * @return mixed
     */
    abstract public function logout(Request $request);
}